﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultWithLeft.Master"
	AutoEventWireup="true" CodeBehind="NewsDetailPage.aspx.cs" Inherits="ITViet.Web.Pages.NewsDetailPage" %>

<%@ Import Namespace="ITViet.Web.App_Code" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContentMain" runat="server">
	<p class="newsSummary">
		<asp:Literal ID="ltrSummary" runat="server"></asp:Literal>
	</p>
	<div class="newsContent">
		<asp:Literal ID="ltrContent" runat="server"></asp:Literal>
	</div>
	<p class="date">
		<asp:Literal ID="ltrDate" runat="server"></asp:Literal>
	</p>
	<a style="float: right; margin-right: 20px;" href='javascript:backTo();' class="btn-detail">
		<%=GetGlobalResourceObject("Strings", "BackTo") %>
	</a>
	<div class="othersTitle">
		<%=GetGlobalResourceObject("Strings", "OtherNews") %>
	</div>
	<ul class="othersList">
		<asp:Repeater ID="rptOtherNews" runat="server">
			<ItemTemplate>
				<li><a href="NewsDetailPage.aspx?t=N&tid=<%#Eval("CategoryId") %>&id=<%#Eval("Id") %>">
					<%#Eval("Title") %></a> <span>(<%#((DateTime)Eval("PostDate")).ToString("dd/MM/yyyy HH:mm")%>)</span>
				</li>
			</ItemTemplate>
		</asp:Repeater>
	</ul>

	<script type="text/javascript" language="javascript">
		function backTo() {
			var typeId = '<%=TypeId %>';
			document.location.href = 'NewsPage.aspx?t=N&tid=' + typeId;
		}
	</script>

</asp:Content>
